package com.example.b_308.myapplication.model.base;


import com.example.b_308.myapplication.model.base.BaseModel;

/**
 * Created by tongkang on 2017/10/31.
 */

public class BaseStaff extends BaseModel<BaseStaff> {
    //员工ID
    String id;
    //员工名称
    String name;
    //员工号码
    String phone;
    //公司ID
    String company_id;
    //部门ID
    String department_id;
    //员工职位
    String title;
    //员工类型
    String category;
    //员工状态
    int status;
    //token
    String token;
    //创建时间
    String create_time;

    public BaseStaff() {
    }

    public BaseStaff(String json, String id) {
        super(json);
        setId(id);
        this.id = id;
    }

    public BaseStaff(String id) {
        this.id = id;
    }

    public void setId(String id) {

        put("id", id);
        this.id = id;
    }

    public void setName(String name) {

        put("name", name);
        this.name = name;
    }

    public void setPhone(String phone) {

        put("phone", phone);
        this.phone = phone;
    }


    public void setCompany_id(String company_id) {

        put("company_id", company_id);
        this.company_id = company_id;
    }

    public void setDepartment_id(String department_id) {

        put("department_id", department_id);
        this.department_id = department_id;
    }

    public void setTitle(String title) {

        put("title", title);
        this.title = title;
    }

    public void setCategory(String category) {
        put("category", category);
        this.category = category;
    }

    public void setStatus(int status) {

        put("status", status);
        this.status = status;
    }

    public void setToken(String token) {

        put("token", token);
        this.token = token;
    }

    public void setCreate_time(String create_time) {
        put("create_time", create_time);
        this.create_time = create_time;
    }

    public String getId() {
        if (null == id)
            id = getStr("id");
        return id;
    }

    public String getName() {
        if (null == name)
            name = getStr("name");
        return name;
    }

    public String getPhone() {
        if (null == phone)
            phone = getStr("phone");
        return phone;
    }


    public String getCompany_id() {
        if (null == company_id)
            company_id = getStr("company_id");
        return company_id;
    }

    public String getDepartment_id() {
        if (null == department_id)
            department_id = getStr("department_id");
        return department_id;
    }

    public String getTitle() {
        if (null == title)
            title = getStr("title");
        return title;
    }

    public String getCategory() {
        if (null == category)
            category = getStr("category");
        return category;
    }

    public int getStatus() {
        if (0 > status)
            status = getInt("status");
        return status;
    }

    public String getToken() {
        if (null == token)
            token = getStr("token");
        return token;
    }

    public String getCreate_time() {
        if (null == create_time)
            create_time = getStr("create_time");
        return create_time;
    }
}
